<template>
  <view class="app-container">
    <router-view />
    <tab-bar />
  </view>
</template>

<script setup>
import TabBar from '@/components/TabBar.vue'
</script>

<style>
.app-container {
  min-height: 100vh;
  padding-bottom: 50px; /* 为TabBar预留空间 */
}
</style>

<script>
export default {
  onLaunch: function () {
    console.log('App Launch')
  },
  onShow: function () {
    console.log('App Show')
  },
  onHide: function () {
    console.log('App Hide')
  },
}
</script>

<style>
/*每个页面公共css */
</style>
